package com.hqyj.springboot.modules.common.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "common_exception_log")
public class ExceptionLog extends AbstractEntity {

    private String ip;
    private String path;
    private String className;
    private String methodName;
    private String exceptionType;
    private String exceptionMessage;

    public ExceptionLog() {
    }

    public ExceptionLog(String ip, String path, String className, String methodName, String exceptionType, String exceptionMessage) {
        this.ip = ip;
        this.path = path;
        this.className = className;
        this.methodName = methodName;
        this.exceptionType = exceptionType;
        this.exceptionMessage = exceptionMessage;
    }

    @Override
    public String toString() {
        return "ExceptionLog{" +
                "ip='" + ip + '\'' +
                ", path='" + path + '\'' +
                ", className='" + className + '\'' +
                ", methodName='" + methodName + '\'' +
                ", exceptionType='" + exceptionType + '\'' +
                ", exceptionMessage='" + exceptionMessage + '\'' +
                '}';
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getExceptionType() {
        return exceptionType;
    }

    public void setExceptionType(String exceptionType) {
        this.exceptionType = exceptionType;
    }

    public String getExceptionMessage() {
        return exceptionMessage;
    }

    public void setExceptionMessage(String exceptionMessage) {
        this.exceptionMessage = exceptionMessage;
    }
}
